package com.atguigu.guli.edu.feign;

import com.atguigu.guli.edu.feign.impl.OssFeignImpl;
import com.atguigu.guli.service.base.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

//失败回调 ,fallback = OssFeignImpl.class
@FeignClient(value = "service-oss")
public interface OssFeign {
    @DeleteMapping("/oss/delete/image")
    R deleteImage(@RequestParam("path")String path, @RequestParam("module") String module);
}
